<html>
  <head>
    <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
  </head>
  <body>
    {% for friend in friends %}
      {% if friend.owner %}
        <b>{{ friend.owner.nickname }}</b> 's friend:
      {% else %}
       An anonymous person 's friend:
      {% endif %}
      <blockquote>{{ friend.nickname|escape }}</blockquote>
      <blockquote>{{ friend.firstname|escape }}</blockquote>
      <blockquote>{{ friend.lastname|escape }}</blockquote>
      <blockquote>{{ friend.emailaddress|escape }}</blockquote>
      <blockquote>{{ friend.mobilephone|escape }}</blockquote>
      <blockquote>{{ friend.date|escape }}</blockquote>
    {% endfor %}

    <form action="/add" method="post">
      <div>Nickname: <input name="nickname"></input></div>
      <div>Email Address: <input name="emailaddress"></input></div>
      <div><input type="submit" value="Add a friend"></div>
    </form>

    <a href="{{ url }}">{{ url_linktext }}</a>

  </body>
</html>
